package com.mmall.apacheshiro.model;

import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;

import java.util.HashSet;
import java.util.Set;

/**
 * @author simple
 * @date 2018-04-24 16:01
 */
@Setter
@Getter
@EqualsAndHashCode(of = {"rid", "rname"})
public class Role {

    private Integer rid;

    private String rname;

    private Set<Permission> permissions = new HashSet<>();

    private Set<User> users = new HashSet<>();
}
